<template>
  <div class="breadcrumb">
    <el-breadcrumb :separator="separator">
      <template v-for="item in breadcrumbs" :key="item.name">
        <el-breadcrumb-item>{{ item.name }}</el-breadcrumb-item>
      </template>
    </el-breadcrumb>
  </div>
</template>

<script setup lang="ts">
interface Props {
  breadcrumbs: any[]
  separator?: any
}
const props = withDefaults(defineProps<Props>(), {
  breadcrumbs: () => [],
  separator: '/'
})
</script>

<style lang="less" scoped></style>
